<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>185-利用对象属性特点给数组去重.html</title>
</head>
<body>
	
</body>
<script>
	var arr = [45,67,23,54,67,12,65,76];
	console.log(arr);
	function uniqueArr(arr){
		var result = [];
		var obj = {};
		for(var i =0;i<arr.length;i++){
			obj[arr[i]] ="";
		}
		for(attr in obj){
			result.push(attr*1);
		}
		// console.log(obj);
		return result;
	}
	console.log(uniqueArr(arr));
</script>
</html>